<!--
 * @Author: shy_didi
 * @Date: 2020-06-10 15:31:04
 * @LastEditTime: 2020-06-10 17:29:42
 * @LastEditors: Please set LastEditors
 * @Description: 合作伙伴
 * @FilePath: \发明人\fmr\src\pages\home\components\cooperation.vue
--> 
<template>
  <div class="cooperation">
    <div class="title">
      <p class="eng">COOPERATION</p>
      <p class="chi">合作伙伴</p>
    </div>
    <ul class="ul-content">
      <li class="li-content" v-for="item of datas" :key="item.id">
        <van-image :src="item.url" />
      </li>
    </ul>
    <div class="check">
        <van-button class="button">查看更多</van-button>
    </div>
  </div>
</template>

<script>
import * as api from "@/request/api/apiList/partner.js";
export default {
  data() {
    return {
      datas: [] //合作伙伴数据
    };
  },
  methods: {
    async API_invest(id, url, sort, page = 2, perPage = 8) {
      let result = {
        id,
        url,
        sort,
        page,
        perPage
      };
      return await api.invest(result);
    }
  },
  async created() {
    let res = await this.API_invest();
    //console.log(res.data.data);

    this.datas = res.data.data.data;
  }
};
</script>

<style>
</style>